getRootWindowInsets
Provide original WindowInsetsCompat that are dispatched to the view hierarchy. The insets are only available if the view is attached.
On devices running API 20 and below, this method always returns null.
Return
WindowInsetsCompat from the top of the view hierarchy or null if View is detached